package com.gvfish.dao;

import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

import org.springframework.stereotype.Repository;

import com.google.appengine.api.datastore.Key;
import com.gvfish.entity.Resource;
@Repository
public class ResourceDao extends CommonDao<Resource, Key> {
	private PersistenceManagerFactory persistenceManagerFactory;

	public void setPersistenceManagerFactory(PersistenceManagerFactory pmf) {
		this.persistenceManagerFactory = pmf;
	}
	@Override
	public PersistenceManager getPersistenceManager() {
		return persistenceManagerFactory.getPersistenceManager();
	}
	@Override
	public Class<Resource> getTClass() {
		// TODO Auto-generated method stub
		return Resource.class;
	}

}
